# Makefile lib
ROOTDIR = ..
include $(ROOTDIR)/Rules.make

#OBJS    :=  Iconv.o Ipc.o Net.o Thread.o XmlParser.o scheme.o capturer.o libIO.o
#SRC	:=  Iconv.c Ipc.c Net.c Thread.c XmlParser.c scheme.c capturer.c libIO.c

SRCS    :=  $(wildcard *.c)
OBJS    :=  $(SRCS:%.c=%.o)
OTHER	:=  $(wildcard *~)

TARGET := libmegaEyes.a

$(TARGET):$(OBJS)
	$(AR) r $@ $^ 
	cp -f $(TARGET) $(ROOTDIR)/lib/

$(OBJS):$(SRCS)
	$(CC) -c $(SRCS) -I $(ROOTDIR)/include/

clean:
	@rm -f $(TARGET)
	@rm -f $(OBJS)
	@rm -f $(OTHER)

